package com.zt.bus.line.model;

import com.zt.system.model.Entity;
import com.zt.util.DateUtil;
import net.sf.json.JSONObject;

import java.io.Serializable;
import java.util.Date;

public class LinePlanDiscount extends Entity implements Serializable {
    private String id;

    private String planId;

    private String discountId;

    private Date expirationDate;

    private String status;

    private static final long serialVersionUID = 1L;

    public JSONObject toJSONObject() {
        JSONObject jsonObject = new JSONObject();
        jsonObject.put("id", id);
        jsonObject.put("planId", planId);
        jsonObject.put("discountId", discountId);
        jsonObject.put("expirationDate", DateUtil.formatDate(expirationDate));
        return jsonObject;
    }

    public String getId() {
        return id;
    }

    public void setId(String id) {
        this.id = id;
    }

    public String getPlanId() {
        return planId;
    }

    public void setPlanId(String planId) {
        this.planId = planId;
    }

    public String getDiscountId() {
        return discountId;
    }

    public void setDiscountId(String discountId) {
        this.discountId = discountId;
    }

    public Date getExpirationDate() {
        return expirationDate;
    }

    public void setExpirationDate(Date expirationDate) {
        this.expirationDate = expirationDate;
    }

    public String getStatus() {
        return status;
    }

    public void setStatus(String status) {
        this.status = status;
    }
}
